package com.wxy.demo.controller;

import com.wxy.demo.client.ServiceClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/***
 * <p>
 * Description: 描述
 * </p>
 * @author wangxiaoyuan
 * @date 2021年08月20日
 */
@RestController
public class TestController {

    @Autowired
    private ServiceClient serviceClient;

    @GetMapping("/test")
    public String test() {
        String hello = serviceClient.hello();
        System.out.println("客户端调用：" + hello);
        return hello;
    }

}
